home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: vixen.cso.uiuc.edu!uchinews!news
- From: Charles Fiterman <cef@geodesic.com>
- Subject: Re: String operator+ and memory leakage.
- X-Nntp-Posting-Host: ford.uchicago.edu
- Message-ID: <Dq3zr9.GBn@midway.uchicago.edu>
- Sender: news@midway.uchicago.edu (News Administrator)
- Organization: Geodesic Systems
- References: <4l5fok$feo@utopia.hacktic.nl>
- Date: Fri, 19 Apr 1996 12:23:33 GMT
-
- In article <4l5fok$feo@utopia.hacktic.nl>,
- Mike Tavares <MIKET@cdynamics.com> wrote:
- >I have an implementation (not mine) of the String class that is leaking
- >memory
- >during the + operator code. The code follows:
- >
- >If I change the method to work in this I mutate one of my addends. There
- >has to be a way of implementing this without memory leakage! HELP!
-
- Strostroup says Garbage collection in C++ is the wave of the future.
- And this is a small part of the reason why. All schemes to solve your
- problem without garbage collection violate encapsulation in some
- ugly way. Indeed Object orientation without garbage collection is
- nonsense.
-
- You can get a free consrvative collector from Hans Boehm
- boehm@parc.xerox.com and like most free stuff its unsupported and
- not really a product yet. But for most stuff it works if you will
- put in some effort.
-
- You can get a supported industrial strength garbage collector
- from Geodesic Systems sales@geodesic.com
-
-